#pragma once
#include <hv/HttpServer.h>
#include <sw/redis++/redis++.h>
#include <random>
class Service
{
public:
	Service();
	int postLogin(HttpRequest* req, HttpResponse* rsp);
	int getCheck(HttpRequest* req, HttpResponse* rsp);
	int getPing(HttpRequest* req, HttpResponse* rsp);
private:
	sw::redis::Redis m_redis;
	std::default_random_engine m_e;
	std::uniform_int_distribution<unsigned> m_u;
};

